Skip to content

Install pinned Goblin runtimes for local sandboxes - #35

Merged
scsmithr merged 4 commits into
mainfrom
feat/managed-runtime-downloads
Nov 24, 2026
Merged

scsmithr merged 4 commits into
mainfrom
feat/managed-runtime-downloads

Conversation

@scsmithr

@scsmithr scsmithr commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Local commands can now download and verify a pinned Goblin runtime when they need to start the local manager. Add adapt runtime install for prefetching and read-only adapt runtime status; both work before cloud configuration or authentication. Keep --runtime-dir and ADAPT_LOCAL_RUNTIME as development overrides.

The checked-in pin selects Goblin 4125721e6a9697f2ff16fb4a2bc263a6e80821bb, whose runtime publication succeeded. Both immutable archives were downloaded through the deployed Platform endpoint and verified before updating the pin. The macOS bundle has Developer ID signatures and accepted notarization; the Linux bundle passed the publisher's KVM qualification.

The installer verifies archive size/SHA-256 and the pinned manifest, rejects unexpected entries and links, preserves executable modes, serializes concurrent installs, and atomically publishes private versioned directories. Cached files are verified before reuse. Downloads honor --timeout. Running managers are reused and old runtime directories are retained for VM references. Local ABI and persisted-state compatibility enforcement is deferred.

cargo xtask pin-runtime REVISION verifies both published archives before atomically updating the source pin. The task and adapt share one Rust pin validator. CLI publication requires a nonempty valid pin. CI tests and lints the workspace on all five host targets; the macOS HTTP fixture switches accepted sockets to blocking mode to fix its intermittent concurrent-install failure.

Validation:

  • All 158 workspace Rust tests, strict workspace Clippy, formatting, and the required-pin check pass with the real pin.
  • Apple Silicon, using the exact published bundle and fresh isolated state: explicit install/status; automatic download and daemon bootstrap without an override or cloud credentials; Ubuntu image preparation and VM boot; persistent exec, environment and stdin forwarding; guest exit-code propagation; stop/delete and empty final inventory. Both downloaded daemon/worker signatures verify, and discovery reports the pinned revision.
  • Cached installation succeeds with an unreachable HTTPS proxy and a one-second timeout. The test VMs and daemons were cleaned up.
  • Linux evidence is the publication's exact-bundle doctor, hypervisor smoke, and guest-boot qualification. The full CLI-managed image/exec lifecycle was exercised locally on Apple Silicon.

The initial Mac acceptance attempt hit Goblin's existing Unix socket path limit with a long temporary state directory. Retrying with a short path passed; the CLI reference now documents that constraint.

@scsmithr

Copy link
Copy Markdown
Contributor Author

@the-adaptile please review the local runtime distribution changes. The companion PRs are adapt/platform#269 (download proxy), adapt/goblin#155 (signed/notarized publication and release identity), and #35 (installer, draft until the first real artifact pin). Please check the archive/install boundaries, signing/publication gates, and compatibility behavior across the three contracts.

@the-adaptile the-adaptile Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confidence Score: 4/5

Summary

Rechecked unchanged e25d8e0: no actionable findings; the real-pin gate is satisfied. Previously executed checks passed, including 158 Rust tests, both-archive verification, Linux installation and offline reuse. Publication is CI-confirmed; Apple Silicon lifecycle acceptance remains author-reported.

Deployed verification not applicable: adapt/platform-cli is outside the adapt/adapt and adapt/platform preview pilot. No webhook sent. Native VM execution and macOS behavior were not independently retested here.

Important Files Changed

File Changes
runtime-lock.json Both published archive hashes independently verified against the checked-in pin.
src/runtime/bundle.rs Strict manifest, archive-entry, file-hash, permission, and cache verification.
src/runtime/install.rs Serialized downloads and staged installation; real Linux installation and offline reuse previously passed.
src/runtime/pin.rs Shared strict lock validator for runtime installation and release tooling.
xtask/src/main.rs Verifies both archive downloads before atomically replacing the source pin.
src/local_runtime.rs Managed bootstrap and manager reuse; local ABI/state compatibility enforcement remains explicitly deferred.
.github/workflows/ci.yml Workspace tests and nonempty-pin gates before CLI publication.
docs/cli-reference.md Documents managed runtime behavior and the existing Unix socket path-length constraint.

Run info

Field ID
Agent 0d6ccd7e-b62f-4075-a561-199d1a7b1bf0
Automation 1fbe37ac-ca54-4b0b-9fea-80055702da90
Run 7b081c04-6b04-4e70-9553-df00bb34eaa8

Reviewed: fab99b3-e25d8e0 · ↻ Re-run review

@scsmithr

Copy link
Copy Markdown
Contributor Author

@the-adaptile Please review the updated heads of adapt/goblin#155 and #35 again. Goblin now publishes automatically after each successful main CI run, with every build pinned to that exact source revision and the tested Linux guest artifacts reused. The new signing/publication/pinning tools and tests are Rust xtasks. The CLI shares its pin validator with xtask, and its macOS nonblocking HTTP test fixture is fixed.

Per the requested scope, local ABI/state compatibility enforcement is deferred. The runtime lock now contains only format, revision, and target archive size/SHA-256 plus manifest SHA-256. Existing fleet bundle metadata and the Platform download route in adapt/platform#269 are unchanged. Signing, notarization, native qualification, and immutable publication gates remain mandatory.

@scsmithr
scsmithr marked this pull request as ready for review November 24, 2026 00:17
@scsmithr

Copy link
Copy Markdown
Contributor Author

@the-adaptile please review again. The real Goblin runtime has now published successfully, and this PR pins revision 4125721e6a9697f2ff16fb4a2bc263a6e80821bb after downloading and verifying both immutable target archives.

Real Apple Silicon acceptance passed through adapt: automatic download, signed daemon startup/discovery, Ubuntu image preparation and VM boot, persistent exec, stdin/environment forwarding, exit-code propagation, stop/delete, and cached reuse with downloads blocked. Downloaded daemon/worker signatures verify and discovery reports the pin. All 158 Rust tests, strict Clippy, formatting, and the required-pin check pass. Linux's published bundle passed its KVM qualification; full CLI-managed image/exec acceptance was run on Apple Silicon.

The long temporary path used in the first acceptance attempt exceeded Goblin's existing Unix socket path limit; the short-path run passed and the limitation is documented. The draft gate for a real runtime pin is now satisfied.

@scsmithr
scsmithr merged commit 3bc33c2 into main Nov 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant